<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class A_pengguna extends CI_Controller {

	function __construct() {
        parent::__construct();	
		$this->load->model("atur/atur_pengguna"); 		
	}
	
	function index()
	{
		$data['user']=$this->session->userdata('user_id');
		$data['level']=$this->session->userdata('level');
		$data['id_peg']=$this->session->userdata('id_peg');
		$data['nama']=$this->session->userdata('nama');
		
		$data['list'] = $this->atur_pengguna->read();
		$data['main_view']='atur/atur_pengguna/pengguna';
		$this->load->view('index',$data);
		
	}
}